package com.zl.common.enumType;

/** 
* @ClassName: DYLB 
* @Description:订阅类别  大类
* @author chxl
* @date 2015-4-28 上午09:43:00 
*  
*/
public enum Category {
	GG("gg","信息公告"),
	JG("jg","公告结果");

	private String code;
	private String name;
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	private Category(String code, String name) {
		this.code = code;
		this.name = name;
	}
	
	public static Category getDylb(String code) {
		for (Category t : Category.values()) {
			if ( code.equals(t.getCode())) {
				return t;
			}
		}
		return null;
	}
}
